package com.atguigu.tingshu.account.service;

import com.atguigu.tingshu.model.account.UserAccount;
import com.atguigu.tingshu.tingshu.vo.account.AccountDeductVo;
import com.baomidou.mybatisplus.extension.service.IService;

public interface UserAccountService extends IService<UserAccount> {

    /**
     * 添加注册信息
     * @param userId
     */
    void addUserAccount(Long userId);

    /**
     * 检查用户可用金额
     *
     * @param accountDeductVo
     * @return
     */
    Boolean  checkAndDeduct(AccountDeductVo accountDeductVo);
}
